package Homeworks.HOMEWORK0307.TV;

public class Tv_Hisense extends Tv_tv {
    boolean d3;
    public Tv_Hisense(){}
    public Tv_Hisense(String theBrand,byte theSize,boolean theD3){
        brand=theBrand;
        size=theSize;
        d3=theD3;
    }
    public void output(){
        if(d3==false)
            super.output();
        else
        {
            System.out.println("电视的牌子是"+brand+"尺寸是"+size+",是3D电视");
        }
    }
}
